import request from '@/utils/request'

/*
  获取分类销量排行
 */
export function getCategorySale() {
  return request({
    baseURL: 'http://10.61.22.44:8889/brother_hood/backstage/public/dashboard/',
    url: 'cs',
    method: 'get'
  })
}

/*
  获取单品销量排行
 */
export function getSingleProductSale() {
  return request({
    baseURL: 'http://10.61.22.44:8889/brother_hood/backstage/public/dashboard/',
    url: 'sps',
    method: 'get'
  })
}

/*
  获取最近七天的销量排行
*/
export function getPastSevenDaysSales() {
  return request({
    baseURL: 'http://10.61.22.44:8889/brother_hood/backstage/public/dashboard/',
    url: 'psds',
    method: 'get'
  })
}
